<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>15_margin的注意事项5.html</title>
    <style>
      .d1 {
        width: 200px;
        height: 200px;
        background-color: orange;
      }
      .d2 {
        width: 200px;
        height: 200px;
        margin-left: -100px;
        background-color: skyblue;
      }
    </style>
  </head>
  <body>
    <!-- margin的值可以是 负值 -->
    <div class="d1">1</div>
    <div class="d2">2</div>
  </body>
</html>
